function Monster() {
	var me = this;
	var data;

	me.data = {
		accuracy : 3000,
		hitAmount : 4000,
		swingTimer : 2.0
	};

	me.Events = {
		'changed' : []
	};
}

Monster.prototype = new Event();

Object.defineProperty(Monster.prototype, "Accuracy", {
	get : function() {
		return this.data.accuracy;
	},
	set : function(value) {
		if (value != undefined && value != '') {
			var value = parseInt(value);
			if (value != NaN) {
				this.data.accuracy = value;
				this.broadcast('changed');
			}
		}
	}
});

Object.defineProperty(Monster.prototype, "HitAmount", {
	get : function() {
		return this.data.hitAmount;
	},
	set : function(value) {
		if (value != undefined && value != '') {
			var value = parseInt(value);
			if (value != NaN) {
				this.data.hitAmount = value;
				this.broadcast('changed');
			}
		}
	}
});

Object.defineProperty(Monster.prototype, "SwingTimer", {
	get : function() {
		return this.data.swingTimer;
	},
	set : function(value) {
		if (value != undefined && value != '') {
			var value = parseFloat(value);
			if (value != NaN) {
				this.data.swingTimer = value;
				this.broadcast('changed');
			}
		}
	}
});
